<div class="bjui-pageHeader">
	<form id="pagerForm" data-toggle="ajaxsearch" 
		action="sys/user/userTrash?action=mgr" method="post">
		<input type="hidden" name="pageSize" value="${pager.pageSize}">
		<input type="hidden" name="pageCurrent" value="${pager.pageCurrent}">
		<input type="hidden" name="orderField" value="${pager.orderField}">
		<input type="hidden" name="orderDirection" value="${pager.orderDirection}">
		<div class="bjui-searchBar">
			<label>登录名：</label>
			<input type="text" id="userCode" value="${pager.params.userCode!''}" name="userCode"
				class="form-control" size="10">
			&nbsp;
			<label>用户姓名：</label>
			<input type="text" value="${pager.params.userName!''}" name="userName" class="form-control"
				size="10">
			&nbsp;
			<label>状态:</label>
			<select name="status" data-toggle="selectpicker">
				<option value="" <#if pager.params.status?? && pager.params.status=''>selected</#if>>全部</option>
				<option value="1" <#if pager.params.status?? && pager.params.status='1'>selected</#if>>正常</option>
				<option value="2" <#if pager.params.status?? && pager.params.status='2'>selected</#if>>锁定</option>
				<option value="-1" <#if pager.params.status?? && pager.params.status='-1'>selected</#if>>注销</option>
				<option value="0" <#if pager.params.status?? && pager.params.status='0'>selected</#if>>未激活</option>
			</select>
			&nbsp;
			<button type="button" class="showMoreSearch" data-toggle="moresearch"
				data-name="searchAppend">
				<i class="fa fa-angle-double-down"></i>
			</button>
			<button type="submit" class="btn-default" data-icon="search">查询</button>
			&nbsp;
			<button id="queryBtn" type="button" class="btn-orange" data-toggle="reloadsearch"
				data-clear-query="true">清空查询</button>
			<div class="pull-right">
				<div class="btn-group">
					<button type="button" class="btn-default dropdown-toggle"
						data-toggle="dropdown" data-icon="copy">
						复选框-批量操作
						<span class="caret"></span>
					</button>
					<ul class="dropdown-menu right" role="menu">
						<li>
							<a href="sys/user/userTrash?action=recover"
								data-toggle="doajaxchecked" data-confirm-msg="确定要恢复用户数据吗？"
								data-idname="id" data-group="ids">恢复选中</a>
						</li>
						<li class="divider"></li>
						<li>
							<a href="sys/user/userTrash?action=shiftdel"
								data-toggle="doajaxchecked" data-confirm-msg="确定要删除选中项吗？"
								data-idname="id" data-group="ids">删除选中</a>
						</li>
					</ul>
				</div>
			</div>
		</div>
		<div class="bjui-moreSearch">
			<label>身份标识码：</label>
			<input type="text" value="${pager.params.idCard!''}" name="idCard" size="20" />
			<label>邮箱:</label>
			<input type="text" value="${pager.params.email!''}" name="email" size="20">
		</div>
	</form>
</div>
<div class="bjui-pageContent tableContent">
	<table data-width="100%" class="table table-bordered">
		<thead>
			<tr>
				<th width="26">
					<input type="checkbox" class="checkboxCtrl" data-group="ids"
						data-toggle="icheck">
				</th>
				<th width="80" data-order-field="userCode">登录名</th>
				<th width="80" data-order-field="userName">用户姓名</th>
				<th width="130" data-order-field="idCard">身份标识</th>
				<th width="130" data-order-field="email">电子邮箱</th>
				<th width="40" data-order-field="status" align="center" data-options="{name:'status', type:'select', items:[{1:'正常'},{2:'锁定'},{-1:'注销'},{0:'未激活'}]}">状态</th>
				<th width="100" align="center" data-order-direction="desc" data-order-field="deleteTime">删除时间</th>
				<th width="120" align="center" >操作</th>
			</tr>
		</thead>
		<tbody>
			<#list pager.pageData.list as u>
			<tr data-id="${u.id}">
				<td>
					<input type="checkbox" name="ids" data-toggle="icheck" value="${u.id}">
				</td>
				<td>${u.userCode}</td>
				<td>${u.userName}</td>
				<td>${u.idCard}</td>
				<td>${u.email}</td>
				<td style="text-align:center">
					<#if u.status==1>
					正常
					<#elseif u.status=2>
					锁定
					<#elseif u.status=-1>
					注销
					<#elseif u.status=0>
					未激活
					</#if>
				</td>
				<td style="text-align:center">${u.deleteTime}</td>
				<td style="text-align:center">
					<a href="sys/user/userTrash?action=recover&id=${u.id}" class="btn btn-green" data-toggle="doajax"
						data-confirm-msg="确定要恢复该行信息吗？" data-callback="refreshData">恢复</a>
					<a href="sys/user/userTrash?action=shiftdel&id=${u.id}" class="btn btn-red" data-toggle="doajax"
						data-confirm-msg="确定要删除该行信息吗？" data-callback="refreshData">彻底删除</a>
				</td>
			</tr>
			</#list>
		</tbody>
	</table>
</div>
<div class="bjui-pageFooter">
	<div class="pages">
		<span>每页&nbsp;</span>
		<div class="selectPagesize">
			<select data-toggle="selectpicker"
				data-toggle-change="changepagesize">
				<option value="20">20</option>
				<option value="60">60</option>
				<option value="120">120</option>
				<option value="150">150</option>
			</select>
		</div>
		<span>&nbsp;条，共 ${pager.pageData.total}条</span>
	</div>
	<div class="pagination-box" data-toggle="pagination" data-total="${pager.pageData.total}"
		data-page-size="${pager.pageSize}" data-page-current="1"></div>
</div>
<script>
function refreshData(json){
	//触发查询按钮
	if(json.statusCode=="200"){
		$.CurrentNavtab.find("#queryBtn").click();
	}
}
</script>
